home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / usenet / volume8 / castle / patch1 < prev   
Encoding:
Internet Message Format  |  1990-03-17  |  4.4 KB

  1. Path: uunet!zephyr.ens.tek.com!tekred!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v09i031:  castle - adventure game with character graphics, Patch1
  5. Message-ID: <5256@tekred.CNA.TEK.COM>
  6. Date: 27 Feb 90 17:16:58 GMT
  7. Sender: news@tekred.CNA.TEK.COM
  8. Lines: 158
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: Bill Randle <billr@saab.CNA.TEK.COM>
  12. Posting-number: Volume 9, Issue 31
  13. Archive-name: castle/Patch1
  14. Patch-To: castle: Volume 8, Issue 93-97
  15.  
  16.     [There were several places where char arrays were being
  17.      overwritten, causing lockup and core dumps. Thanks to
  18.      mark@bit.uucp for finding and fixing the string[] problem.
  19.         -br]
  20.  
  21. #! /bin/sh
  22. # This is a shell archive.  Remove anything before this line, then unpack
  23. # it by saving it into a file and typing "sh file".  To overwrite existing
  24. # files, type "sh file -c".  You can also feed this as standard input via
  25. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  26. # will see the following message at the end:
  27. #        "End of shell archive."
  28. # Contents:  patches01
  29. # Wrapped by billr@saab on Tue Feb 27 09:12:31 1990
  30. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  31. if test -f 'patches01' -a "${1}" != "-c" ; then 
  32.   echo shar: Will not clobber existing file \"'patches01'\"
  33. else
  34. echo shar: Extracting \"'patches01'\" \(2838 characters\)
  35. sed "s/^X//" >'patches01' <<'END_OF_FILE'
  36. X*** /dev/null    Tue Feb 27 09:00:03 1990
  37. X--- INCLUDE/patchlevel.h    Tue Feb 27 09:08:55 1990
  38. X***************
  39. X*** 0 ****
  40. X--- 1 ----
  41. X+ #define PATCHLEVEL    1
  42. X*** INCLUDE/castle.h.orig    Tue Feb 27 09:08:27 1990
  43. X--- INCLUDE/castle.h    Tue Feb 27 09:08:32 1990
  44. X***************
  45. X*** 150,156 ****
  46. X  
  47. X  char levels[7][24][76];
  48. X  short screens[35][12][27];
  49. X! char string[9];
  50. X  int known[20];
  51. X  short lvl_att[36];
  52. X  static int exp[37] = {
  53. X--- 150,156 ----
  54. X  
  55. X  char levels[7][24][76];
  56. X  short screens[35][12][27];
  57. X! char string[20];
  58. X  int known[20];
  59. X  short lvl_att[36];
  60. X  static int exp[37] = {
  61. X*** files.c.orig    Thu Feb 22 15:52:50 1990
  62. X--- files.c    Mon Feb 26 15:58:47 1990
  63. X***************
  64. X*** 46,53 ****
  65. X          Copyright() PSC
  66. X  */
  67. X  
  68. X! char files[20];
  69. X! char f_nam[80];
  70. X  
  71. X  get_levels()
  72. X  {
  73. X--- 46,53 ----
  74. X          Copyright() PSC
  75. X  */
  76. X  
  77. X! char files[128];
  78. X! char f_nam[128];
  79. X  
  80. X  get_levels()
  81. X  {
  82. X*** monster.c.orig    Wed Feb 21 12:14:56 1990
  83. X--- monster.c    Tue Feb 27 09:06:16 1990
  84. X***************
  85. X*** 89,95 ****
  86. X                monst_att(mon);
  87. X           break;
  88. X           case 'r' :
  89. X!          case 'R' : if(!run_att)
  90. X                if(rand()%18 + 3 < char_stats.dexterity)
  91. X                 run_away = TRUE;
  92. X                else{
  93. X--- 89,95 ----
  94. X                monst_att(mon);
  95. X           break;
  96. X           case 'r' :
  97. X!          case 'R' : if(!run_att) {
  98. X                if(rand()%18 + 3 < char_stats.dexterity)
  99. X                 run_away = TRUE;
  100. X                else{
  101. X***************
  102. X*** 97,102 ****
  103. X--- 97,106 ----
  104. X                 print_mess("You can\'t get away!",2,0);
  105. X                 wrefresh(message_win);
  106. X                }
  107. X+             }else{
  108. X+               print_mess("You can\'t get away!",2,0);
  109. X+               wrefresh(message_win);
  110. X+             }
  111. X           break;
  112. X           case 'l' :
  113. X           case 'L' :
  114. X***************
  115. X*** 377,383 ****
  116. X          wmove(inv_win,0,0);
  117. X          wprintw(inv_win,"Use which Item?");
  118. X          wmove(inv_win,1,0);    
  119. X!         wprintw(inv_win,"N)ext P)rev S)elect");
  120. X          wmove(inv_win,3,0);
  121. X          wprintw(inv_win,"%s",start->item);
  122. X          wmove(inv_win,1,21);
  123. X--- 381,387 ----
  124. X          wmove(inv_win,0,0);
  125. X          wprintw(inv_win,"Use which Item?");
  126. X          wmove(inv_win,1,0);    
  127. X!         wprintw(inv_win,"N)ext P)rev S)elect esc) to exit");
  128. X          wmove(inv_win,3,0);
  129. X          wprintw(inv_win,"%s",start->item);
  130. X          wmove(inv_win,1,21);
  131. X*** store.c.orig    Tue Feb 27 08:21:55 1990
  132. X--- store.c    Tue Feb 27 08:22:00 1990
  133. X***************
  134. X*** 197,203 ****
  135. X      int i = 0,j;
  136. X      char in;
  137. X  
  138. X!     for(j=0;j<=20;j++)
  139. X         string[j] = '\0';
  140. X      wmove(message_win,row,col);
  141. X      wrefresh(message_win);
  142. X--- 197,203 ----
  143. X      int i = 0,j;
  144. X      char in;
  145. X  
  146. X!     for(j=0;j<20;j++)
  147. X         string[j] = '\0';
  148. X      wmove(message_win,row,col);
  149. X      wrefresh(message_win);
  150. X***************
  151. X*** 205,210 ****
  152. X--- 205,212 ----
  153. X        {
  154. X         in = string[i] = getch();
  155. X         if(in == 0x08 || in == 0x7f){
  156. X+          if(i == 0)
  157. X+            continue;
  158. X           i--;
  159. X           wmove(message_win,row,col+i);
  160. X           wprintw(message_win,"%c",' ');
  161. END_OF_FILE
  162. if test 2838 -ne `wc -c <'patches01'`; then
  163.     echo shar: \"'patches01'\" unpacked with wrong size!
  164. fi
  165. # end of 'patches01'
  166. fi
  167. echo shar: End of shell archive.
  168. exit 0
  169.